Add test that condition-wait reacquires the lock on timeout