Imane Khelif, one of the boxers at the centre of a gender row at the Olympics, has guaranteed herself a medal at the Paris games.