But the profile documentation implies the contrary:
the modules (including core required modules and their functions) are
NOT yet included when running hook_profile_modules() (which calls
hook_install()). The modules are included only at a later stage,
hook_profile_final().