New McKinsey research shows that nearly a third of US K–12 educators are thinking of leaving their jobs. But there are steps districts could take to attract and retain the teachers the nation needs.