China is learning lessons from the war in Iran. Chief among them, the United States may pose an even greater threat than Beijing thought.