fix crash if pthread_mutex_unlock is called without ever locking
[musl] / src / internal / syscall.c