Krispy Kreme narrows losses despite 22% revenue drop