don't crash if TLS library is loaded into process with no thread pointer
[musl] / src / thread / tls.c