Fix Hibernate session handling in UserContextDBMgr