synchronize cond var destruction with exiting waits
3 files changed