clean up handling of thread/nothread mode, locking
[musl] / src / thread / syscall_cp.c