[automerger skipped] Merge "Fix potential use-after-free bug in reboot" into rvc-dev am: 03ad58468b am: 93065fbab6 am: bcf476dece -s ours

am skip reason: Change-Id I73ecd7a8c58c2ec3732934c595b7f7db814b7034 with SHA-1 7ba5030dcc is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/13144438

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2203e82bf185931a045362d0f0fa00b2d6af680d