/var/lib/mysql-upgrade/ is in mariadb-server-5.5 5.5.36-1.
This file is owned by root:root, with mode 0o755.