gfio: add check for unnecessary g_thread_init() call