fix(module-runner): exclude completed modules from in-flight cycle detection (fix #22999) (#23009)