Role of mass on the stability of flag/flags in uniform flow