Dynamical analysis of niche construction in n-population metapopulation