tree-walk.c: fix overoptimistic inclusion in :(exclude) matching