Fix traverse nesting unlock bug.