ISPN-2913 putForExternalRead leaves locks

https://issues.jboss.org/browse/ISPN-2913

I checked the code and a similar patch was applied. I've just added tests to prove that everything is working as expected