gnuplot: fix for cairo backend

call g_type_init() in cairo.trm

Closes #18528.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>