South African pastor who plotted racist attacks gets life in jail