cleanup
Merge pull request #1 from eXist-db/develop

merge
Merge remote-tracking branch 'eXist/develop' into develop
avoid use of Collection.getPermissions because of read locking inside.
In time of call collection locked anyway or if not it lead to deadlock.
Merge pull request #80 from shabanovd/develop

result of checks on deadlock situations