As Krispy Kreme attempts to rebound from a period of missed sales targets and profit losses, the company is trying to boost efficiency. But it’s found some tasks still require human hands.