For two decades, Lula showed the world’s progressives how to win and govern across the ideological spectrum. His possible defeat is forcing a harder lesson.