The online mattress seller is going private for less than $300 million, about half its IPO price from nearly two years earlier.