AudioFlinger: Allow TimeCheck to track waits through RecordThread::mStartStopCV

Test: Treehugger
Bug: 338974476
Change-Id: I2d014b984cf06ae187272c8a96fa9820c4d61fe7
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index d63e3c2..3f0e305 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -9175,7 +9175,7 @@
     // This is needed for proper patchRecord peer release.
     while (recordTrack->state() == IAfTrackBase::PAUSING && !recordTrack->isInvalid()) {
         mWaitWorkCV.notify_all(); // signal thread to stop
-        mStartStopCV.wait(_l);
+        mStartStopCV.wait(_l, getTid());
     }
 
     if (recordTrack->state() == IAfTrackBase::PAUSED) { // successful stop