gold gains, heads for second straight weekly gain