Fix race condition with g_type_check_instance_is_a.