Check if something is a Node.js stream. This is a fork of sindresorhus/is-stream, but with CommonJS support.