Alibaba and Tencent are showing how companies can get around Beijing’s massive crackdown on foreign deals. The firms, among