Compiler deadlock detection