Generalization in Generative Adversarial Networks: A Novel Perspective from Privacy Protection