initialize TLS variables when module loads

Remove C++11 thread-safe static initialization from hotspots,
initialize ahead of time when the module loads.