Bugfix: Fix rare crash if directory is removed during backup

In restic 0.18.0, the `backup` command could crash if a directory was removed
between reading its metadata and listing its directory content. This has now
been fixed.

https://github.com/restic/restic/pull/5421
