Fixes possible race in example Sensors HAL

Fixes race condition where wake() is invoked on a possibly null
mEventQueueFlag.

Bug: 350489722
Test: presubmit
Change-Id: Ic6f98c099579a4fced30a5fc710f43fad1b8b7b9
1 file changed