Thousands of undocumented migrants in South Africa are rushing to leave after anti-immigrant protests.