fix crash in pthread_testcancel if pthread_self has not been called
[musl] / crt / crt1.c