backpatched Statement.isClosed() implementation of PGPoolingDataSource with some performance improvements. #180