Initialize threads correctly on old versions of GLib2 (RhBug: 1108787)