Detected by clang-tidy.
clearing the tasks on the worker threads can cause the queue to stall while the cookie is notified, released, and deleted. we punt the cleanup off to a reaper thread so that the workers can continue.