ADPF: Fix the lock race issue for send hint.

When sending the POWER_EFFICIENCY hint, the existing implementation
runs into lock race which resulted in system hanging issue.

Bug: 379950145
Test: atest VtsHalPowerTargetTest
Flag: NONE powerhal doesn't have a tag yet.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6a20206cbb565fe968371a86eadf90ab4addf0e0)
Merged-In: I7803b15b877e0252928387d918b9095fa8cdd03a
Change-Id: I7803b15b877e0252928387d918b9095fa8cdd03a

Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
2 files changed