An extreme scenario in which the Iran conflict lingers could push the global economy to the brink of recession, the International Monetary Fund says.