fixed regression: ODatabaseThreadLocalFactory was ignored when passing from ORecordAbstract.getDatabase()
Merge pull request #2125 from luigidellaquila/develop

fixed regression on ODatabaseThreadLocalFactory usage