The big risk for Beijing is that the Iran war drags down global demand for the exports that are driving China’s economic growth.