China shifts from Africa’s top megaproject lender to a debt collector