Add missing lock in TClass::GetClass