Adjust timeout test to make race condition much less likely.