Fixed the ElasticSearchPersistWriter

I don't see any synchronization