Migrant workers are seen as contributing to South Africa’s unemployment crisis. But cutting them off threatens to throw the regional economy off kilter