fix possible race condition in test_await_data

ar.data checks the latest value, and was checked twice assuming no change. This could cause `4` to stop the iteration but be absent from `found`, causing test failure.