Chinese airlines were buffeted this summer by a series of cockpit blunders that put passengers’ lives at risk, pointing to what foreign pilots say are serious flaws in training as China’s booming aviation industry struggles to meet demand for flight crews.