Cleanup the dead nodes while pruning the tree
While pruning the tree, we hold a tree and node bucket write lock, so we can easily also prune the dead nodes.
While pruning the tree, we hold a tree and node bucket write lock, so we can easily also prune the dead nodes.