A South African court sentenced a woman to life in prison for kidnapping and selling her six-year-old daughter, in a case that horrified the country.