bugfix: SessionTrack: strict ordering of queing a work

Holds a mutex in changing a flag and notifying.
wait_for() can takes 2 seconds when it receives cond_var
notification before flag setting.

Bug: 385027407
Test: l3 stress ranging
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9cf4b74885ba78251796875422e57830645dc9a9)
Merged-In: I197037b95584e74d443817055df2ed9124b025b2
Change-Id: I197037b95584e74d443817055df2ed9124b025b2
1 file changed
tree: 51c058da9e90bb3bec21a2e2337559a3fef30d79
  1. aidl/
  2. extns/
  3. halimpl/
  4. Android.bp
  5. OWNERS