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