Barbie maker Mattel lowered its full-year profit forecast, suggesting high inflation will take a toll on the holiday shopping season.