refactor mrb_realloc() in gc.c

clean the redundant codes between mrb_malloc_simple() and mrb_realloc()