Primitive subsets of lattices