[JBIDE-15653] ensure we're locking the workspace while publishing
Merge branch 'JBIDE-15653' into jbosstools-4.1.x