gold gains for third session as stocks wobble