gold logs a gain as focus turns to u.s. presidential debate