TikTok is investing more aggressively in AI ads infrastructure—while entrenching its walled garden effect.