[PATCH 6.1 154/157] mm/ksm: fix flag-dropping behavior in ksm_madvise