Walgreens is closing stores — and that could make it more profitable, analyst says