gi: reduce needless get_g_type()

It fails for GI_INFO_TYPE_CALLBACK.