More private-equity firms are taking companies public, as sluggish dealmaking has made it hard to find buyers.