docs: def locked(dev, target):
      """ Gets or sets the lock. """
      click.echo("Locked: %s" % dev.locked)
      if target is not None:
          click.echo("Setting lock: %s" % target)
          dev.locked = target