def METHOD_NAME(self):
    try:
        self._lock_failed = False
        with Tqdm(
            bar_format="{desc}",
            disable=not self._friendly,
            desc="If DVC froze, see `hardlink_lock` in {}".format(
                format_link("https://man.dvc.org/config#core")
            ),
        ):
            self._lock = zc.lockfile.LockFile(self._lockfile)
    except zc.lockfile.LockError:
        self._lock_failed = True
        raise LockError(FAILED_TO_LOCK_MESSAGE)  # noqa: B904