Eliminate busy waiting in Expectr#expect