Fix plugin install directory (INSTALL_PLUGINDIR not PLUGIN_INSTALL_DIR).
From the log:
Manually-specified variables were not used by the project:
PLUGIN_INSTALL_DIR << note
This affected riscv64 builds because it was wrongly using
/usr/lib/mariadb/plugin, but the problem seems as if it could apply to