core: various minor optimisations for SlamAllocator::getSlab.
x86: only pin parent physical page in VirtualAddressSpace::clone if the parent page is not alreadya CoW page.

This happens if the parent forks more than once, and if we pin a CoW page,
we end up leaking the page when the parent is cleaned up as the refcount
never makes it to zero.