Walgreens Boots Alliance is nearing a deal to sell itself to private equity firm Sycamore Partners for around $10 billion.