Make WritableStream's wait() return a rejected promise once close()-ed

See https://github.com/whatwg/streams/issues/140#issuecomment-49323433