io.directories: Fix weird issue with iterate-director-entries running out of retainstack when using locals.
io.directories: Fix weird issue with iterate-director-entries running out of retainstack when using locals.

Ugly code, maybe could be cleaned up by swapping the order?

Related to #2464.

tgunr/factor,mrjbq7/factor,factor/factor,tgunr/factor,mrjbq7/factor,mrjbq7/factor,tgunr/factor,factor/factor,mrjbq7/factor,tgunr/factor,factor/factor,factor/factor,tgunr/factor,mrjbq7/factor,tgunr/factor,factor/factor,factor/factor,mrjbq7/factor