If it is not a mutex associated with the process, it does not matter. When one thread dies, the process dies and the mutex leaves.
If it is a mutex shared by a process, you are asking the wrong question. You would not want to unlock the mutex if the thread died holding it. The reason a thread supports a mutex is because it can manage shared data through states that should not be considered by other threads. If a thread dies while holding a mutex, it is likely that the data remained in such an inconsistent state. Unlocking the mutex will allow other threads to see invalid / corrupted data.
source share