The sale to food-delivery startup Wonder would end a disastrous six-year experiment with public ownership.