Flowers Foods, the US bakery group trying to improve its efficiency and grow profits, is to shut a snack cake bakery in North Carolina.