NXP-12038 fixing lock management connection validation

Conflicts:
	nuxeo-core-storage-sql/nuxeo-core-storage-sql/src/main/java/org/nuxeo/ecm/core/storage/sql/LockManager.java
cleanup removing unused fields
insure statement closed