Finds the lock with the key name that matches that given.
        :param name: the lock key to match
        :return: the found lock

def find(self, name: str) -> Optional[ConnectedConsulLockInformation]:
        """
        Finds the lock with the key name that matches that given.
        :param name: the lock key to match
        :return: the found lock
        """
        lock = self.consul_client.kv.get(name)[1]
        if lock is None:
            return None

        lock_information = json.loads(lock["Value"], cls=ConsulLockInformationJSONDecoder)
        return ConnectedConsulLockInformation(
            self, lock_information.key, lock_information.session_id, lock_information.created,
            lock_information.seconds_to_lock, lock_information.metadata)