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

Resubmit of #460 to the fd5 branch.