NXP-11617: allow security policies to apply to other query languages than NXQL, for instance CMISQL
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