fn create_synced_temp( parent: &Path, target: &Path, content: &[u8], metadata: Option<&Metadata>, ) -> Result<TempGuard>