JCR-2312 : use the same dialect variable for jcr and lock