Don't allocate TLS Key unless we need it; deallocate it on process exit --- partial fix for bug #2199