The principles behind the anti-apartheid struggle in South Africa explain why the country's leading Anglican can embrace a gay bishop.