juju-run: acquireLock later, refactor newRelationIdValue