The US, Iran and Oman are close to a temporary deal to reopen the Strait of Hormuz.