Fix a problem with lost thread wakeups that can occur when making concurrent calls to run() and poll() on the same io_service object.