A Green-Schwarz mechanism for D = 4, N = 1 supergravity anomalies