A Survey of Generalization of Graph Anomaly Detection: From Transfer Learning to Foundation Models | Synapse