liballoc: Copy only up to `min(new_size, old_size)` when doing reallocate.

Copy only up to `min(new_size, old_size)` when doing reallocate.

This was a bug when running with jemalloc disabled.

Fix #16687