A duo of private-equity firms is set to buy the discount chain.