Tension in the Middle East, hot inflation rattle stocks. Take these steps to shore up your portfolio