Six Flags Entertainment said it's selling six amusement parks across the U.S. and one in Canada for a total of $331 million.