don't crash if TLS library is loaded into process with no thread pointer