gold futures turn lower as dollar gains ground