[runtime] Use MonoError for mono_string_get_pinned