Fixed cleanup of the cond var when a mutex is destructed while threads are waiting on it. Rev: src/threads.c:1.231