Terminate the backend ourselves on PG 9.2+

This should make it harder to accidentally break this test.
Merge pull request #14035 from matthewd/pg_terminate_backend

Terminate the backend ourselves on PG 9.2+