Fixed tree_lock spec test.

@dclarizio please review/test