Private equity firms have been circling Peloton for a potential buyout as it grapples with slowing sales and losses.