fix race condition in PythonInterpreterWorker that shows up when two nested event loops trigger the Wake slot.