Improved maritime links underpin Beijing’s bid to boost African exports while tightening its commercial reach.