Fixed a typo in the previous commit. Destroy the cond, not the mutex.