[glib-deprecated] Fix crash with autosave and GLib>=2.32

error is only set when g_thread_try_new() fails, error checking
had inverted logic.