Move module types to own constants

[#50752269]

Replace Metasploit::Model::Module::Ancestor::MODULE_TYPES with
Metasploit::Model::Module::Type::ALL so Metasploit::Model::Model::Type
can be used in place of the Msf::MODULE_* constants in
metasploit-framework.