Let's unlock the lines list after the AST_LIST_TRAVERSE instead of inside it.