[bcl] Simplify the check added in 0ab4372189b998f2efec2a9b12ef16bd071916a5.
[runtime] Refactor mono_marshal_get_delegate_invoke_internal ().