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.
Merge pull request #4490 from minrk/await_data

fix possible race condition in test_await_data