Fix EZP-23254: DFS - tmp files left if the file size is not identical to...

... the original one

Link: https://jira.ez.no/browse/EZP-23254

## Decription
This is a follow up of #808. Temp files could still be left out if a corrupted filesystem returned invalid size values.

## Tests
Manual tests