The T/O inhibit is not triggered by setting FLEX/MCT, it is triggered at a certain ground speed (approx 80kts IIRC) although in reality it seems to come up at about 50 kts groundspeed. Red warnings are not inhibited by the T/O inhibit so in your scenario the config warning should sound.