With so much political friction in Iran and Iraq, it is easy to overlook the growing unrest in Nigeria, the world’s eighth-largest oil exporter. But Nigeria’s mounting social and political problems reveal how violence and uncertainty in yet another major energy producer is driving foreign investors out and global oil prices up.