class ThreadSafe::AtomicReferenceCacheBackend::Node

def try_lock_via_hash(node_hash = hash)

def try_lock_via_hash(node_hash = hash)
  if cas_hash(node_hash, locked_hash = node_hash | LOCKED)
    begin
      yield
    ensure
      unlock_via_hash(locked_hash, node_hash)
    end
  end
end