Make async test less flaky.

Poll until timeout rather than just sleeping before checking the syncback
result.