Tehran’s twin imperatives appear to be keeping it at the negotiating table despite skirmishes in the Strait of Hormuz.