Deadlock safety