[automerger skipped] Fix use-after-free in SurfaceFlinger::doDump am: 3b3e59185d am: fb448deb22 -s ours

am skip reason: Merged-In I0748396519c924dc1b84113d44259f22d0d7ebd6 with SHA-1 6761733ad1 is already in history

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

Change-Id: Ic719fda6bb47b7580c0fad7b38d8b71e4f9f337d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>