On a functional differential equation in locally convex spaces