No data corruption duriing parallel upload

Fixes #5117

As described in #5117 a parallel upload of the same file can cause data corruption.
The root cause is that the re-assembly of the file chunks can result in parallel write to the same target file.

This patch introduces part files for the reassembly and uses rename to move the file to the final destination.

Additional Feature:
mtime handling on chunked upload