Add two lock implementation.
Add concurrent test for lock.