stream.js: fix reopen timeout