major semaphore improvements (performance and correctness)
[musl] / src / thread / cancellation3.c