[automerger skipped] Prevent mEventCache UAF in SensorEventConnection am: 3b27b3b3bb -s ours am: cbfad4bb50 -s ours am: da1c37e177 -s ours am: 7929c573b3 -s ours am: 7a0d6741f3 -s ours am: fdc9ff756c -s ours am: 538c6d002b -s ours

am skip reason: Change-Id Ia9275b7cc574df371cdb2e1b80c6699df193b580 with SHA-1 3b27b3b3bb is in history

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

Change-Id: Iff21bdd5e3cf36efe74dfee48d508d55a3c06a45