The function import pass was computing all the imports for all the
modules in the index, and only using the imports for the current module.
Change this to instead compute only for the given module. This means
that the exports list can't be populated, but they weren't being used
anyway.
Note that if we want to use the export lists to control linkage changes,
it would be better to compute them a single time in the thin link step
and mark any required changes in the index.