Set `readyState` before engine.io close event.

This way we don't need to possibly wait for a drain event before we
actually change the readyState and don't miss reconnects, which
currently happens when linked against the current engine.io-client
master.
Bump engine.io-client.
Increase timeout.

Increased timeout in tests before closing the manager engine so
reconnects will take place with more certainty.