Hi! Thanks for the patches!
If you think they are correct and universally should be in the packaging, please submit a Merge Request: https://salsa.debian.org/mariadb-team/mariadb-server/-/wikis/Contributing-to-MariaDB-packaging-in-Debian Steps to reproduce the original issue would also be nice and help in testing that a fix has the intended effect.