ByteDance finalizes a majority US-owned TikTok joint venture to secure data, avoid a ban, and place operations under American control.