synchronize cond var destruction with exiting waits
[musl] / src / internal / syscall.c