adding more logging to debug dying worker issue
attempt to fix uniques_waiting waiting problem.

So when uniques_waiting is empty, the worker will stop itself because it thinks
itself has nothing to work on and he is covered by other workers. However, in
the recent changes, the uniques_waiting does not take care of blocking because
of priority.