Ride-hailing platform Lyft Inc. on Wednesday forecast key demand metrics that were better than Wall Street expected, but sales and rides for the second quarter came in below estimates.