fix for WQueue re-implementation: checkout workunits in qm.workQueue.wait only