Keeping products under lock and key dissuaded customers from purchasing them, Walgreens said in earnings call.