Checkstyle cleanup for hibernate packages

It is the design of you code that causes the lock to happen in a different method than the unlock.