Gold futures turn lower just ahead of the settlement as the dollar strengthens