South African court rules gold miners not allowed to strike