fix potential race condition in detached threads
[musl] / lib / empty