Unfriended abroad, China’s tech giants seek home comfort