President Trump has signaled that he is open to the idea of a prolonged military conflict with Iran. Investors are spooked by that scenario.