Reimplement a thread specific storage.
Simplify the ThreadSpecificSingleton implementation.
Enabled ~ for name.