East Africa is betting billions on oil infrastructure to strengthen energy security and reduce dependence on imports.