If Iran had tried to control the straits before being attacked, it would have torpedoed their strategic goals (which unlike the US, they clearly have).
Now thanks to the unbelievable stupidity of one man whose vanity enabled people around him to do whatever they wanted they have been handed the perfect opportunity to engage this weapon as victims. Murdered schoolchildren tend to do that.
You don't stay in power for 47 years by being stupid.