Merge "implement pthread mutex deadlock detection"