The rise of Mojtaba Khamenei shows that the Islamic Republic is far more durable than many policymakers assume.