Sync mariadb cluster init with mysql element

Similar cluster init process is used for mariadb as for mysql.

Change-Id: I8089c70346c963c5d81beb1b365d5da00eb9545b
Merge "Sync mariadb cluster init with mysql element"