Formation of multiple populations in globular clusters: another possible scenario