Set the visibility of an imported module

REQUIRE: the visibility of the modules imported by m are already set for m