A longtime owner has sold the last multifamily building in its portfolio, a 68-unit property in Middlesex County that traded for $8.5 million.