gold gains amid n.korea concerns, but heads for 2nd weekly decline