Fix the flakiness of EvCacheProviderTest by using TestUtils to sleep and check in loop.