S. Africa school nixes headscarf rule amid protest