use atomic decrement rather than cas in pthread_exit thread count
[musl] / include / syscall.h
1 #include <sys/syscall.h>