[JBIDE-15653] fixed workspace locking issue while publishing