Thousands protest against job losses in South Africa