[vm/test] Make vm/cc/TTS_Regress_CidRangeChecks less brittle.
[vm/test] Make vm/cc/TTS_Regress_CidRangeChecks less brittle.

Since we're adding the classes in a known order, we can calculate
how many unrelated classes are needed to align the cids from
the next cid to be allocated.

TEST=TTS_Regress_CidRangeChecks

Fixes https://github.com/dart-lang/sdk/issues/48673

Change-Id: I04b750c64cf739bc6ba0bda2a93373a6443cedaf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239025
Reviewed-by: Clement Skau <495593248b6158163719b90dde8357b589c8e5d0@google.com>
Commit-Queue: Tess Strickland <cce218d042444252b7ac446d60910fca7732559c@google.com>

dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk