South Africans turned an athlete’s record-breaking Olympic victory into a debate about racial politics