Workaround for tomcat-jdbc-pool implementing Connection#equals incorrectly.