Australia will consider contributing military assets to an international mission to keep shipping free of charge via the Strait of Hormuz.