lock the cache to prevent concurrent writing and hence corruption
test for the presence of lsof