[ASan] make free_hook_realloc test more robust