x86/setup: Fix static memory detection