Fixed the ElasticSearchPersistWriter

What is the intent of a different lock here?  

As written, threads can enter other blocks you are synchronizing on, like add, one at a time BUT can also enter this block one at a time concurrent to accessing the other methods.  Is that the intent?