Revert "Revert "ksm: check and skip page, if it is already scanned""

This reverts commit 08d517a9af2456c33d52ebdf0206af35e1e954b6.