[bugfix] fixed deadlock issue when copying a resource or collection: the methods should first synchronize on the collection cache, then obtain a lock on the collection store. Not doing so may cause a deadlock if another thread tries to access the collection.
[bugfix] fixed deadlock issue when copying a resource or collection: the methods should first synchronize on the collection cache, then obtain a lock on the collection store. Not doing so may cause a deadlock if another thread tries to access the collection.

svn path=/trunk/eXist/; revision=10677

kohsah/exist,dizzzz/exist,lcahlander/exist,MjAbuz/exist,wolfgangmm/exist,lcahlander/exist,adamretter/exist,olvidalo/exist,jensopetersen/exist,patczar/exist,ljo/exist,RemiKoutcherawy/exist,opax/exist,joewiz/exist,jensopetersen/exist,eXist-db/exist,patczar/exist,lcahlander/exist,wshager/exist,windauer/exist,wolfgangmm/exist,eXist-db/exist,zwobit/exist,jessealama/exist,adamretter/exist,jensopetersen/exist,ljo/exist,wshager/exist,jessealama/exist,windauer/exist,kohsah/exist,shabanovd/exist,joewiz/exist,opax/exist,lcahlander/exist,MjAbuz/exist,patczar/exist,adamretter/exist,zwobit/exist,MjAbuz/exist,eXist-db/exist,zwobit/exist,adamretter/exist,jessealama/exist,patczar/exist,windauer/exist,RemiKoutcherawy/exist,ambs/exist,joewiz/exist,patczar/exist,kohsah/exist,eXist-db/exist,kohsah/exist,windauer/exist,ambs/exist,opax/exist,ambs/exist,olvidalo/exist,wolfgangmm/exist,kohsah/exist,dizzzz/exist,shabanovd/exist,wshager/exist,adamretter/exist,MjAbuz/exist,hungerburg/exist,hungerburg/exist,RemiKoutcherawy/exist,ljo/exist,MjAbuz/exist,hungerburg/exist,jensopetersen/exist,MjAbuz/exist,shabanovd/exist,RemiKoutcherawy/exist,RemiKoutcherawy/exist,shabanovd/exist,ambs/exist,jessealama/exist,olvidalo/exist,jensopetersen/exist,windauer/exist,olvidalo/exist,dizzzz/exist,ambs/exist,jessealama/exist,hungerburg/exist,joewiz/exist,RemiKoutcherawy/exist,wshager/exist,wshager/exist,eXist-db/exist,shabanovd/exist,dizzzz/exist,wolfgangmm/exist,opax/exist,dizzzz/exist,zwobit/exist,ljo/exist,lcahlander/exist,ljo/exist,opax/exist,wshager/exist,joewiz/exist,ambs/exist,joewiz/exist,dizzzz/exist,shabanovd/exist,jensopetersen/exist,lcahlander/exist,ljo/exist,patczar/exist,wolfgangmm/exist,olvidalo/exist,kohsah/exist,wolfgangmm/exist,zwobit/exist,hungerburg/exist,windauer/exist,eXist-db/exist,adamretter/exist,zwobit/exist,jessealama/exist