In the face of increasing automation, Africa’s resource economies will not have the time to create an industrial middle class as developed nations did.