Ensure looper isn't used after invalidateSensorQueue

looper->signalSensorEvents causes the sensor event queue to be
re-registered even if invalidateSensorQueue has already been called.
This can happen if events are still being sent through onEvent even
after invalidate() is invoked.

Ensure that invalidate() stops any further usage of the looper through
onEvent to avoid using freed data.

Bug: 132658096
Test: Verify VNDK can sample as normal
Change-Id: I7dfbf10776d9386433aa3c64667ba41fc45cb7cb
1 file changed