Clean up OpenLogicalChannelRecord on SIM removal

This CL cleans up the OpenLogicalChannelRecord when detecting
the UiccPort is disposed or finalized which may occor in scenarios
like SIM removal or modem reset.

In all those scenarios, the underneath logical channel tracked in the
record has been released. Without the clean-up, the client crash later may
trigger a LC closure while the LC has been re-assigned to other clients.

Bug: 335046531
Test: atest FrameworksTelephonyTests
Test: Manual test to reproduce and verify the issue sceanrios
Test: Basic functional test (activation, call, sms, data...)
Change-Id: I4c7b150e80c6509ee549785595394b2cebbd7197
diff --git a/flags/uicc.aconfig b/flags/uicc.aconfig
index 8166853..2d7b643 100644
--- a/flags/uicc.aconfig
+++ b/flags/uicc.aconfig
@@ -42,3 +42,11 @@
     description: "This flag controls eSIM available memory feature."
     bug:"318348580"
 }
+
+# OWNER=rambowang TARGET=24Q3
+flag {
+    name: "cleanup_open_logical_channel_record_on_dispose"
+    namespace: "telephony"
+    description: "This flag cleans up the OpenLogicalChannelRecord once SIM is removed"
+    bug:"335046531"
+}