src/io/source_wavread.c: avoid reading in closed file