Test nested `proc` can access outer owned data

Fixes #10682