bootmem: factor out the marking of a PFN range