Adding locking mechanism for entity updates

Introducing this feature, to avoid spawning multiple coordinators for a single entity update issued.
minor, can this constructor have entityName first and lock as second argument.