Event

This series fixes handling of spurious wakeups in threading.Event.