A record 3.4 million young Chinese flocked to the civil service exam this year, lured by the prospect of lifetime job security and perks including subsidised housing