there was a so called "Tanker war" during Iran-Iraq war.
The cost /benefit curve might have stopped them from blocking Hormuz.