Walmart is actively considering joining a group of investors to buy TikTok, according to sources close to the deal.