prevent code from running under a thread id which already gave ESRCH
[musl] / src / thread / tls.c