Call madvise() with flag MADV_ZERO_WIRED_PAGES on macos and ios.