fixed first case of multithreading lock implementation. issue #2866
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
refactor for improve record locking.
fixed wrong embed document on lazy set add