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