make last thread's pthread_exit give exit(0) a consistent state
[musl] / src / thread / tls.c