In one case, our db crashed and we had to import from a snapshot which had couple of entries in the task_locks table. some of the new submitted tasks tried to get same locks and ended up waiting forever because there was nothing to cleanup those zhombie locks.
as a workaround we manually removed those from task_locks table.