x86: make DEBUG_PAGEALLOC and CPA more robust