Rewritten FilesystemCache to use advisory file locking instead of tmp files