Better lock management during bulk detachment
Remove deadlock condition from unlink() and rmdir() that can result from
resolving an entry and then the parent while a path resolution is
running concurrently.
Read-lock the path entry when running the visitor callback on the entry.
Don't write-lock, for performance.