[PATCH 4.14 335/496] mm/ksm: fix interaction with THP