x86: fix wrong section of pat_disable & make it static