Add lock auto extend timer.
Add some more tests.