In the months before TikTok finalized a deal to sell its U.S. operations to a group of investors friendly to President Donald Trump, the mood inside the company was chaotic. Employees had little information about what was going on with the sale, owing in part to what they describe as TikTok’s secretive management style, and…