MariaDB: Fixed post-install failure on OS X 10.9

Added `mkdir` to create `brew --prefix`/etc/my.cnf.d
This prevents the post-install step of failing

Fixes #25140