[PATCH 4.9 238/329] mm/ksm: fix interaction with THP