pgbouncer transaction patch

Adding pgbouncer transaction patch.
Originally from http://treehou.se/~omar/postgresql-jdbc-8.4-701-pgbouncer_txn.patch