extended Condition.wait