Delete unneeded lock object from test
- #2653