optimize pthread termination in the non-detached case
[musl] / src / thread / __unmapself.c