In a reversal from the discount chain’s rapid expansion of recent years, Dollar General closed three times more stores than it opened in January.