/var/lib/mysql-upgrade/ is in mariadb-server-10.0 10.0.32-0+deb8u1.
This file is owned by root:root, with mode 0o755.