Fix conditional call to madvise().