In another sign of China’s tightening grip on the country’s growing technology sector, the government has taken an ownership stake in a subsidiary that controls the domestic Chinese social media and information platforms of ByteDance, the Beijing-based company that owns TikTok.