Shared office provider WeWork plans to add a female Harvard professor to its all-male board and take back the almost $6 million it paid its chief executive for the company's branding name, moves that follow criticism of some of its business practices in the wake of disclosures it made ahead of a planned initial public offering.