Under the hood
Native updater's orphaned-staging-folder cleanup was refactored into its own function, always run before plugin-lock cleanup
What
The cleanup logic that removes leftover staging directories from the native updater has been pulled out into its own dedicated function, and is now always run before the plugin-lock cleanup step, rather than being interleaved inline with it as before.
Why
This is a reordering and cleanup of internal update logic; the staging cleanup ran unconditionally before too, so this mainly changes the order and structure of the code rather than adding new behavior.