HDM: Prevent race condition by guarding with lock.

HalDeviceManager.mWifi is shared resource for various wifi modules
(threads). Acquire lock before using it.

(cherry-picked from go/pag/1694045)

Bug: 158276067
Test: atest com.android.server.wifi

Change-Id: I2e7763fa5e0da43ece5862b5e2c787eb1df572b5
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
1 file changed