fix stale locks left behind when pthread_create fails
[musl] / src / thread / syscall_cp.c