COR-318: hibernate session leak with idm

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