[ASan] fix a bug in allocator-v2 which could lead to SEGV on realloc(malloc(0), 4)