zmq: add volatile qualifier to disable any compiler optimization
while accessing boolean member in ThreadPool