Avoid loading modules in `module->path' and `known-module'.

This is particularly problematic for `require-reloadable'.

Closes PR 13688.