/var/lib/mysql-upgrade/ is in mysql-server-5.7 5.7.21-1ubuntu1.
This file is owned by root:root, with mode 0o755.