The war in Iran is likely to lead to several issues for China, but it also presents Beijing with opportunities.