How to set temporary files location?

Any idea what will happen if I’ll modify create flags to disable exclusive access to the opened temp file?

Is there any probable data loss scenario involved if no other process will ever try to access that temp file?