Hi, The maintainer scripts currently do not do anything with the socket activation based service. There is also no testing or CI in place to validate.
Yes, I would accept a change that stops mariadb.socket together with mariadb.service before unpacking and starts both again in postinst (only if the socket was active before) assuming it is sufficiently well proven to work and not cause new regressions.

