The collapse of Banco Master has spiralled into an institutional crisis weeks before Brazil's October election, drawing in the Supreme Court, Lula and rival Flávio Bolsonaro.