rave: Remove local imports from sys.modules after entire chain is done.

This prevents importlib._bootstrap from being smart and requiring e.g. a
parent module to be in sys.modules which it admittedly just imported,
therefor causing errors in the original code for nested packages and
modules.