hwc2: Fix validation reset from QDCM CMD Handler

QDCM Command Handler doesn't run in same thread as HWC main thread.
The validation reset from this thread needs to wait on the Sequence
Scope lock, so that the validate state of display doesn't get reset
between the Validate and Present phase of the current draw cycle.

CRs-Fixed: 2342280
Change-Id: I1c311ab40d4f7886129782ab15c05a8051dfd80a
diff --git a/sdm/libs/hwc2/hwc_session.cpp b/sdm/libs/hwc2/hwc_session.cpp
index 56070fb..244c66d 100644
--- a/sdm/libs/hwc2/hwc_session.cpp
+++ b/sdm/libs/hwc2/hwc_session.cpp
@@ -2024,6 +2024,8 @@
   HWCColorManager::MarshallStructIntoParcel(resp_payload, output_parcel);
   req_payload.DestroyPayload();
   resp_payload.DestroyPayload();
+
+  SEQUENCE_WAIT_SCOPE_LOCK(locker_[display_id]);
   hwc_display_[display_id]->ResetValidation();
 
   return ret;