Airbnb Inc. reported tumbling revenue and mounting losses in the second quarter, but the home-sharing startup is still eyeing a stock market debut before year’s end, according to people familiar with the matter.