When not storing tracks, do not open() the ofstream.

Writing to /dev/null is slow. Not opening the stream works as well
(all writes fail sliently) and is for practical purposes as fast as
removing the write statements entirely.