gold futures turn higher ahead of the comex close