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