Notify all waiting threads in destructor to allow POSIX semantics on condition variables destruction.