Checkstyle cleanup for hibernate packages

If the unlock is done in the compareVersionUnderRowLock, them I'm very confused. Very unexpected logic.