The South African government’s hardline stance on the global criminal court could reopen debate in the ruling ANC about withdrawing from the body