gold futures turn lower as dollar firms