add missing return in Condition::wait