Multi-threaded Distributed Deadlock Detection