Properly handle import loops in the parallel upsweep