Six Flags is selling seven theme parks for $331 million to EPR Properties, focusing on optimizing returns rather than expanding.