Eager to keep capital within its borders, China is restricting the ways individuals can engage with global markets.