`write_outfile_async()` is now dead code and should be removed whenever convenient.
The refactoring of old scan functions into the new scan() and the migration of app.py into scan.py has made this function unreachable. Since we no longer have a distinction between threaded and unthreaded scans (all scans are threaded) this function isn't needed and should be removed.