fix NioFile.read to reopen if the channel is closed