[#1885] [#2523] Statement.close() may be called upon previously
closed statements

* [#1885] Add test to count opening and closing of Statements and
ResultSets by jOOQ
* [#2523] Statement.close() may be called upon previously closed
statements