Light nuclei in galactic globular clusters: constraints on the self-enrichment scenario from nucleosynthesis