Kristofor Lofgren’s lawsuit, filed Wednesday, provides an inside look at what went wrong after Bain’s $15 million investment.