Gold headed for the biggest weekly loss in six years, as war in the Middle East boosted energy prices and reduced expectations for interest-rate cuts.