Use condvars in IPC message passing