Release the lock on classpath dirs while renaming / deleting / moving, closes #106

There are probably more places where this needs to happen.
Between 1088 and 1102 can be exceptions thrown? Even if no exceptions can be thrown now in the future it can. And in this case this code will be very fragile.