Add a test to double-check that [1cbe7a0883] did not affect anything.
Avoid closing a pseudo-table associated with sorting in a co-routine since
that pseudo-table might be used again in an outer loop.