work_handler deadlock fix