Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event

See b.android.com/55873

Change-Id: I5ad9160ff286c291feece2deda647af66e251bb5