x86: move all the pgd_list handling to one place