Fix implementation of asynchronous connect operation so that it can cope with spurious readiness notifications from the reactor.