The competition to build an oil refinery in Uganda is a case study in what America faces as it challenges China's infrastructure lending program.