pub(crate) fn decrease_handle_refcount(node: &Arc<TreeNode>)
Decreases the reference count of handles.
Once no handle is left, we can remove the node from the tree and connect its parent directly to its children.