[devctl] Optimize cleanup_sys_modules a bit
by moving out of a loop a costly computation that is constant.
This at least benefits the `i18ncube` command.
Related to #15789486.
[theme]
inherit = pyramid
pygments_style = sphinx.pygments_styles.PyramidStyle
stylesheet = cubicweb.css
[options]
logo = logo-cubicweb.svg
favicon = cubicweb.ico
in_progress = false
outdated = false
canonical_url =