use atomic decrement rather than cas in pthread_exit thread count
[musl] / include / malloc.h
2011-02-12 Rich Felkerinitial check-in, version 0.5.0