Gold futures erase gains to finish modestly lower