[PATCH] log: fixup log_head after relocating global data