On the self-enrichment scenario of galactic globular clusters: constraints on the IMF