clean up the cachefile locking some.