[JBIDE-15653] use workspace locking in adapter