Thread::EntryPoint() should check gEnv before using.