use atomic decrement rather than cas in pthread_exit thread count
[musl] / src / misc / getresgid.c
2012-04-22 Rich Felkeradd getresuid and getresgid syscall wrappers