It currently locks the whole subtree, when (based on POSIX semantics) locking just the entry being worked on should suffice. cc @mattwala