hal: Fix failure in VtsHalAudioV2_0Target test due to spkr protection

1. Speaker protection cal file is not generated as
the path /data/misc/audio is not accessible. Change the
cal file path to /data/vendor/misc/audio to fix this.
2. VtsHalAudioV2_0Target fails to execute completely and results in
failure of target boot up after VTS execution as system server waits
indefinitely for audioserver to come up when speaker protection
is enabled.

This is due to improper clean up of speaker protection threads
and fd leaks.

Add spkr_prot_deinit function which joins the calibration thread
and cleans up the memory allocated for thread. Close the leaked
fds in the speaker calibration thread to ensure successful
execution of VTS.

CRs-Fixed: 2076733
Change-Id: I55a03dcafa3ed7bdf6f4d6d1bf72d84fbcc9c404
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index fdabbd5..9c23f16 100755
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -2351,6 +2351,8 @@
     /* deinit usb */
     audio_extn_usb_deinit();
     audio_extn_dap_hal_deinit();
+    if (audio_extn_spkr_prot_is_enabled())
+        audio_extn_spkr_prot_deinit();
 #ifdef DYNAMIC_LOG_ENABLED
     log_utils_deinit();
 #endif