Also attempt to handle this nicer by ignoring the truncate failure when it doesn't matter, and recover by deleting the temp file when it does. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4594