Added lock in getvertex