gold tallies third weekly gain on north korea news, weaker dollar