JCR-3811
- Allow retrying of failed journal entry database inserts
- Fix bug in ConnectionHelper where resources were not cleaned up when a SQL call would fail in batch mode

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/branches/2.6@1625544 13f79535-47bb-0310-9956-ffa450edef68