A woman walks her dog at a gated compound with large townhouses and yards, housing rich Chinese and expatriates, on the outskirts of Beijing.