[IR] Drop assigning attributeOwnerId in KLIB backends

attributeOwnerId is not used anymore at the 2nd stage of compilation.
The exception is NativeFunctionReferenceLowering, where it will be
removed later.

#KT-78175 Fixed
diff --git a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/AbstractFunctionReferenceLowering.kt b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/AbstractFunctionReferenceLowering.kt
index 970af3f..34b5429 100644
--- a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/AbstractFunctionReferenceLowering.kt
+++ b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/AbstractFunctionReferenceLowering.kt
@@ -274,9 +274,7 @@
             isOperator = superFunction.isOperator
             isSuspend = superFunction.isSuspend
         }.apply {
-            attributeOwnerId = functionReference.attributeOwnerId
             annotations = invokeFunction.annotations
-
             parameters += createDispatchReceiverParameterWithClassParent()
             require(superFunction.typeParameters.isEmpty()) { "Fun interface abstract function can't have type parameters" }
 
diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Boxing.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Boxing.kt
index 6e838e2..c150d6d 100644
--- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Boxing.kt
+++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Boxing.kt
@@ -71,7 +71,6 @@
         returnType = boxedType
     }.also { function ->
         function.parent = parent
-        function.attributeOwnerId = inlinedClass // To be able to get the file.
 
         function.addValueParameter {
             startOffset = inlinedClass.startOffset
@@ -104,7 +103,6 @@
         returnType = unboxedType
     }.also { function ->
         function.parent = parent
-        function.attributeOwnerId = inlinedClass // To be able to get the file.
 
         function.addValueParameter {
             startOffset = inlinedClass.startOffset
diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/BridgesBuilding.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/BridgesBuilding.kt
index d9c3f06..0bf6941 100644
--- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/BridgesBuilding.kt
+++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/BridgesBuilding.kt
@@ -80,7 +80,6 @@
             returnType = bridgeDirections.returnDirection.type() ?: target.returnType
             isSuspend = function.isSuspend
         }.apply {
-            attributeOwnerId = function.attributeOwnerId
             parent = function.parent
             val bridge = this
 
diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DevirtualizationAnalysis.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DevirtualizationAnalysis.kt
index 054676c..5275379 100644
--- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DevirtualizationAnalysis.kt
+++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DevirtualizationAnalysis.kt
@@ -387,8 +387,6 @@
 
                 override fun visitCall(expression: IrCall) {
                     expression.acceptChildrenVoid(this)
-
-                    expression.attributeOwnerId = expression
                 }
             })
         }