[bugfix] Restoring backup using an LDAP realm was broken. User lookup on LDAP caused an endless loop during restore. Checking for existing users thus has to be done in two steps.
Merge pull request #395 from wolfgangmm/develop

[bugfix] Restoring backup using an LDAP realm was broken.
[ignore] Restore: rebuild package repo failed due to wrong query.
Merge pull request #396 from wolfgangmm/develop

[ignore] Restore: rebuild package repo failed due to wrong query.
Improved threading in concurrency test
[bugfix] Make sure to close input/output streams in interleaving
order
[refactor] Simplify by taking a WRITE lock immediately as we will be updating
anyway
[refactor] Simplify by taking a WRITE lock immediately if the copy/move src and
dest collections are the same
Experiment to use Java's ReentrantReadWriteLock instead of eXist's