Mutex: Release all held mutexes when a thread exits.