Fix context bookkeeping and a race condition starting the polling thread
Fix context bookkeeping and a race condition starting the polling thread

dronttula/erlzmq2,zeromq/erlzmq2,zeromq/erlzmq2,dronttula/erlzmq2