use atomic decrement rather than cas in pthread_exit thread count
[musl] / src / search / hsearch.c
2011-06-25 Rich FelkerXSI search.h API implementation by Szabolcs Nagy