Starbucks put up its first quarterly same-store sales gain in nearly two years, helped by better morning staffing and new protein drinks. But the coffee chain warned its turnaround would be a “multiyear” effort, and said it would provide a fuller financial outlook in January.