[automerger skipped] hwc2: add locks for callback functions am: f0360a1db2 -s ours am: 3ddcbd6d99 -s ours am: 601c931b55 -s ours am: c0072b56a6 -s ours am: 13615f86b2 -s ours

am skip reason: Change-Id I9ae8ac8968f4ff9286846de15df0411b5d79ae63 with SHA-1 f0360a1db2 is in history

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

Change-Id: I8c714ba4668fb75d7584de815d668289205ee70d