Fix wait_until_nothing_in_flight() condition check.