Twitter near a deal to sell itself to Elon Musk