db/simple: fix file corruption in the presence of mount points
If a directory is a mount point, omit the "directory: " as well. This bug is years old, but has become more visible now that mount points are persistent in the state file.
This commit is contained in: