Fixed Statement.isClosed() implementation of PGPoolingDataSource with some performance improvements.