inference: remove the `must_be_codeinf` setting (#52059)
This setting is no longer utilized in either the base or known external
compiler pipelines. And what allowed by setting `must_be_codeinf =
false` can now be achieved using the `cache_mode::UInt8` field, making
the setting redundant.