Fix EhCacheProvider concurrent issue