gold futures hold onto gains ahead of comex close