[automerge] RESTRICT AUTOMERGE SurfaceFlinger: fix a potential race condition in stealReceiveChannel 2p: 29e34cfcf9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/18766107

Bug: 232541124
Change-Id: Iac86443781ff38b899f95ed5b3777325fb8a962f