COR-319: hibernate session leak with idm