serialize execution of publishing for the same object

this allows to publish concurrently from the same application and be
sure the completion of publishing would be satisfied.