Fix so that lock files created in /tmp are removed when a directory is re-created. This way attempts to create a new index after a crashed indexing run no longer have to manually remove lock files from /tmp.