Apparently 'my sub' captured the $conn variable and held a ref on it
even beyond the parent sub scope. 'my $x = sub {}' doesn't do that.
Getting the ref counts right is important here for the last test to work.
(Found while I was inspecting the refcount effects of the new ->conn()
methods with Devel::Peek)