work around "signal loses thread pointer" issue with "approach 2"
[musl] / src / thread / sem_getvalue.c
2011-03-04 Rich Felkerimplement POSIX semaphores