Nigeria’s ambitious Chinese-built rail project is keen to avoid a familiar problem