fix race condition in dlopen
[musl] / src / thread / tls.c