xbps-{alternatives,pkgdb,reconfigure}: xbps_pkgdb_update() has been fixed to flush when told so, and we don't need to update the in-memory copy because we are exiting.
See xbps-alternatives(1) for more information. Thanks to all who helped to design this and for fixing grammar in the manual page.