Fix an issue where an inherited @JsName from another module was not accessible in a child class. The issue can only be reproduced in the codegen box tests and cannot be reproduced in the FIR FE checker tests.