Nigeria and China signed a tentative deal to build three oil refineries in the West African state at a cost of $23 billion, strengthening the countries' energy partnership.