Struggling drugstore chain Walgreens is going private. The company on Thursday said it inked a deal with private equity…