Refactor mrb_realloc() func in gc.c.
Merge pull request #1330 from suzukaze/refactor-gc-c

Refactor mrb_realloc() func in gc.c.