As thousands of migrants leave South Africa following weeks of anti-immigrant unrest, a temporary facility near Beitbridge has become the country’s final processing point, where officials and aid agencies are working around the clock to manage the flow of people heading home.