improved locking on database pool.
Merge branch '1.7.10' of github.com:orientechnologies/orientdb into 1.7.10