Fix wq current tasks

w->current_tasks was getting corrupted, as we removed elements from the hash we were also iterating on.