split a gjs_gc_if_needed() function We're going to use this later. https://bugzilla.gnome.org/show_bug.cgi?id=725099