minor code cleanup on threded local remove.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop