[bugfix] The validateXMLResourceInternal lock document, but do not unlock with a hope that it will happen up somewhere. Link lock with transaction, so document lock will be released after transaction completed or canceled.
[bugfix] The validateXMLResourceInternal lock document, but do not unlock with a hope that it will happen up somewhere. Link lock with transaction, so document lock will be released after transaction completed or canceled.

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

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