Nigeria, Africa’s most populous nation, is grappling with a housing crisis that has spiraled into one of the biggest challenges of urban life.