Gold ends lower, but tallies a third-weekly gain