Don't add a dependency to an import closure if it would introduce a cyclic dependency.