Gold prices finish higher, but still logs a second-straight weekly loss