Check whether an event might be pending, without taking the lock. Note that this is purely an advisory mechanism; the caller must repeatedly check as they may lose the race for when the event pending flag is set. The purpose of this function is to allow the main thread to avoid needlessly blocking on the query thread.