Unify argument verification for Marshal.GetHINSTANCE off-Windows (#20130)