Stupid (?) implementation of syscall_memlimit.