fix potential race condition in detached threads
[musl] / crt / crt1.c