btrfs: extent-tree: Use btrfs_ref to refactor btrfs_free_extent()