HalClient: Update the deadlock fix flag to be PURPOSE_BUGFIX

Bug: 347392749
Test: Tested with the clients using this library.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0b275dac676246567d02d6aad9748fa3d759d4e1)
Merged-In: I874b0cc0c22217ae7c0b17bf0ef78c3b4737efe1
Change-Id: I874b0cc0c22217ae7c0b17bf0ef78c3b4737efe1
diff --git a/chre_flags.aconfig b/chre_flags.aconfig
index 147fc51..78fe231 100644
--- a/chre_flags.aconfig
+++ b/chre_flags.aconfig
@@ -58,6 +58,16 @@
 }
 
 flag {
+  name: "bug_fix_reduce_lock_holding_period"
+  namespace: "context_hub"
+  description: "A flag guarding the fix of reducing lock holding period to avoid deadlock."
+  bug: "347392749"
+  metadata {
+    purpose: PURPOSE_BUGFIX
+  }
+}
+
+flag {
   name: "reliable_message"
   is_exported: true
   namespace: "context_hub"
diff --git a/host/common/hal_client.cc b/host/common/hal_client.cc
index de5a24d..9b4086e 100644
--- a/host/common/hal_client.cc
+++ b/host/common/hal_client.cc
@@ -47,7 +47,7 @@
 }
 
 bool HalClient::reduceLockHolding() {
-  return flags::reduce_lock_holding_period();
+  return flags::bug_fix_reduce_lock_holding_period();
 }
 
 std::unique_ptr<HalClient> HalClient::create(