shmem: reduce pagefault lock contention (upstream improvements)