Emulate msync syscalls during replay.
Add comments explaining why setrlimit and prlimit64 need to be executed.
can_use_scratch returns bool.