On a hardware breakdown, freezing buying and selling in thousands of companies in the worst-ever outage for the world’s third-largest bourse.