Forget pending frames when stream is closed (e.g. RST)

Also, re-use writeQueue structs and their slices to make less garbage.