Solve deadlock

A temporary hack which seems to solve https://github.com/lynaghk/zmq-async/issues/3 . The code could definitely be more elegant though.