gh-63016: Add flags parameter on mmap.flush (#139553) Co-authored-by: Victor Stinner <vstinner@python.org>