As many foreigners can attest to, obtaining permanent legal residence in China has always been freaking hard as hell.