[JBIDE-15653] ensure we're locking the workspace while publishing