As Lyft Inc cruises toward an initial public offering this month, one of the big winners will be General Motors Co, whose stake in the ride-hailing firm could be worth as much as $1.27 billion.