Fix TLRefCount::useGlobal to work with TSAN