[mem] mem_realloc api added.