btrfs: refactor helper for bg flags to name conversion