#206 fix memory leaks in lock tree tests