The G20 summit in Rio was supposed to be a triumph for President Lula, but storm clouds are gathering in global politics.