btrfs: move the root freeing stuff into btrfs_put_root