Six Flags sells 8 of its theme parks to private investors.