[FELIX-2280] To much code duplication in DefaultJDBCLock, OracleJDBCLock and MySQLJDBCLock. Thanks Christian Müller for supplying this patch :)