fix SYS_madvise check in flush_one_syscall

Pretty self-explanatory.