Fixed the ElasticSearchPersistWriter

it is synchronized by the method that calls this so doesn't need to be synchronized here.