btrfs: ref-verify: fix memory leaks in btrfs_ref_tree_mod()