[PATCH 6.17.y] mm/ksm: fix incorrect KSM counter handling in mm_struct during fork