As jhb noted, pmap_invalidate_all() on any x86 CPU without PCID support does not flush global TLB entries. This patch aims to fix the issue.
Namely, it adds invltlb_glob() for i386 (and renames amd64 invltl_globpcid() to _glob()). The invltlb_glob() is used for kernel_pmap when global shutdown is requested. Since we need to know the pmap in the shutdown handler on i386 (on amd64 it is already stored in a global var), the i386 and amd64 TLB shutdown code become identical and are merged.