Merge "Refactor native MotionEvent_obtain to avoid possible memory leak" into main