checkLock

Check whether the node given is locked by somebody else than the
current session. Access is allowed if the node is not locked or
if the session itself holds the lock to this node, i.e. the session
contains the lock token for the lock.

checkLock

Check whether the path given is locked by somebody else than the
session described. Access is allowed if the node is not locked or
if the session itself holds the lock to this node, i.e. the session
contains the lock token for the lock.