Free all mutexes when a deadlock condition is detected (cause of stalls?)