Fix Work Queue Hang

Fixes unusual case under load where the master can get stuck forever while finished tasks are outstanding.