Add extra deadlock detection.