you might add smeserver-mariadb105 as dep and point toward its socket. only thing you will need to alter in the smeserver-bugzilla-update event is to put all configuration actions after 90 so mariadb is fully configured. you might just need to add an extra mariadb105-mysql.init restart after that at the end of the configuration action. not ideal but should do.