NXP-11830 warn on sql directory session live at commit (backport)

Signed-off-by: Stephane Lacoin <slacoin@nuxeo.com>