COR-319: hibernate session leak with idm

https://jira.exoplatform.org/browse/COR-319