Themes now support post update functions. See https://www.drupal.org/node/3259199
However when visiting /update.php to process the theme's update function, it refers to the theme as a module.
I expect the update function to refer to the theme as a theme.