Fix arm thunk

Forward port of this changes:
https://github.com/Unity-Technologies/mono/pull/143