[automerger skipped] hwc2: add locks for callback functions am: 148e622efb -s ours am: bcd32a9950 -s ours am: dca0484981 -s ours

am skip reason: Change-Id I52a48b49f5cc2e48fc89e4ced7bf59648ab4e9d1 with SHA-1 148e622efb is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/qcom/sm8150/display/+/11904620

Change-Id: I23f9b1f5edd448cc85ecfaec749719f16bb5058e