KSM same page goes not with UKSM.
Due to KSM now being legacy, we don't want this feature to mix with UKSM. Let's enable it only if KSM_LEGACY is enabled.