The dollar is on track for its best month since July as the conflict in the Middle East scrambles Wall Street’s playbook for the world’s dominant reserve currency.