Almost all commercial shipping through the Strait of Hormuz had come to a halt after the war with Iran escalated, with tanker owners increasingly concerned about security risks.