Neighborhood types and compact subsets in locally convex spaces