Integrate adlist code

It compiles with the lwlock code. Now need the test program for it.