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