Like `fs.createWriteStream(...)`, but atomic.