Some cleanup in ZMQ_AbstractSocketThread