Six Flags will sell seven amusement parks for $331 million, including Michigan's Adventure and Valleyfair, to focus on stronger-performing locations.