DALI, China—For months, Ma Yongjian didn’t tell his parents where he was. Halfway through a master’s degree in computer science, the 27-year-old stopped going to class last year. Software engineering ...