sysbench: fix build without mysql in all cases

Closes #31824.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>