[runtime] Refactor mono_marshal_get_delegate_invoke_internal ().