An Iranian oil tanker is being reflagged and is preparing to sail to the Mediterranean, Iran’s state television reported on Friday, after Gibraltar decided to free the seized ship.