Lock all pages in memory.
fn lock_all(flags: MemLockFlags) -> Result<(), Errno>
Flags to used for locking.
mlockall(2)