databases/mariadb106-server: fix build on riscv64
Copy patch from databases/mariadb105-server. While here, also enable WSREP.