Vertex relative distance locking
I don't believe that it's possible to actually lock vertices. I can think of a workaround though.

Select the vertices you want locked in vertex select mode, and press H. This will hides them, so you won't be able to move them around.

When you're done, and you want to bring them back (unlock them) just press AltH