China’s tech crackdown is mostly affecting firms listed outside the country, helping to create a big performance gap between onshore and offshore Chinese stocks.