Fix emit() callback never called: https://github.com/LearnBoost/socket.io-client/issues/524