gold reverses course late in the session to close lower