Refactor for threadsafety around 0mq sockets