Gold futures settle with a loss after late day reversal