[mcs] Dynamically calculate size of flow-analysis bitset. Fixes #4210