[polyml] Thread.ConditionVar.waitUntil