GC: Remove redundant locking in reallocNoSync.
fix Issue 3454 - inconsistent flag setting in GC.realloc()
regression test for Issue 3454
initialize variable locally

- goto will jump over the whole scope
Merge pull request #645 from Safety0ff/fix3454

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