leader rework, added locks_ttb.erl