CEO Brian Niccol called the closures and layoffs a significant step to revive Starbucks’ financial performance and customer experience.