Fix crash when using -o without --copy-pattern and we find non-flac files
Use temporary file for in-flight transcodes

This prevents interrupted, partial, truncated transcodes littering our
file system and causing false positives for --skip-existing