Lock tree base implementation
Refactor lock tree