A looming ban on TikTok set to take effect on Sunday presents a multibillion-dollar headache for app store operators Apple and Google.