It's not using a temporary file in all cases, because under certain conditions, padding can be utilized so that writing edited metadata back to the FLAC file does not require rewriting the entire file. If rewriting is required, then a temporary file is used by Mp3tag.