Use instance_exec to execute lambdas so their context is the same as the spec

[#72642250]

Signed-off-by: James Myers <jmyers@pivotallabs.com>