Over a century of school history ends in Lanarkshire village