fix SYS_madvise check in flush_one_syscall