Note: Unsure if mp_event_handle_nowait() is the right answer in all cases, but this seems to be what we want in our blocking loops.