Fix possible segfault, when the GC runs within the loop of
pgresult_init_fnames().