Fix big performance hit on committing transactions

After committing a transaction the client updates temporary rids by
iterating over a HashMap for every changed record. This leads to poor
performance and 100% cpu utilization while committing transaction.
This commit fixes the mentioned shortcomings.
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop
FIxed issue with embedded document with no class when the schema dictates it