Gold futures hold gains in last hour of trading before settlement