With respect to your (B) scenario, I'm skeptical that a government or rebel group would regard offshore oil operations as stable enough in the long term to consider saving those reserves for future generations. In the coming oil-short era, the country could easily lose access to offshore assets.

Onshore oil could more plausibly be kept in reserve. Sure, it could.

In the government's place, I would want to pump as much as possible from the offshore fields, then invest the resulting cash in some modernization project inside the country.

The plan is simpler than that.
Pump oil as fast as possible.
Deposit money in Switzerland.
Leave when there is nothing left to loot.

This is exactly the issue. I'm not saying that (B) is a likely scenario (rather, I think that A is far more likely in Africa), but just pointing out that (B) won't necessarily improve the export situation either. It would, I think, greatly improve the lives of the locals, but but it violates one of my laws of human behavior: any solution that requires many people to suddenly behave better than they have in the past is doomed to failure...