[loader] Document why check if a module can be attached