correct bug in self-dependency case: file concurrently containing modules and program using those modules or modules using other same-file-modules