Bain Capital is considering a sale or initial public offering of its portfolio company Dessert Holdings that could value the maker of cakes, pies and cookies at over $3 billion, according to three people familiar with the matter.