gold futures pare gains ahead of the comex close