TRQ-2190 - Resolve deadlock in server after non-privileged
user executes 'qdel -p all'. Clean up mutex lock handling in
delete_all_work().