[DF-4841] Deadlock fix in WorkerThread