Assert that syscache lookups don't happen outside transactions.

Andres Freund