Make std.file.setTimes safe
Merge pull request #2465 from tom-tan/safe-file-setTimes

Make std.file.setTimes safe