def METHOD_NAME(self, name, lock_id, thr=None):
    """
    Verify if lock release has been written to cluster data.
    """
    for nodename in thr.list_nodes():
        try:
            lock = thr.nodes_data.get([nodename, "locks", name])
        except KeyError:
            continue
        if lock.get("id") == lock_id:
            return False
    return True