[GEOT-4629]:Fixing H2 lock timeout

[GEOT-4629]:Fixing H2 lock timeout