btrfs: Refactor __get_raid_index() to btrfs_bg_flags_to_raid_index()