First attempt to fix lock exception when storing a document: "java.lang.IllegalStateException: Thread does not have lock".
First attempt to fix lock exception when storing a document: "java.lang.IllegalStateException: Thread does not have lock".

svn path=/trunk/eXist-1.0/; revision=1592

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