Gold futures finish with a modest loss as the dollar strengthens