fix Issue 3454 - inconsistent flag setting in GC.realloc()