Global flexible workspace provider WeWork’s Chief Executive Sandeep Mathrani is leaving for private equity firm Sycamore Partners at a time when the money-losing company, backed by Japan’s SoftBank, still seeks to turn profitable and is fighting to keep its stock listed.