WritableStream: Clear resolving functions

By making sure resolving functions are cleared on resolve/reject promises, we
can detect bugs.
Ah that makes sense. It was probably leftover from the time when we had it reject on closed. (Or maybe it didn't reject ... I don't quite remember. But it did something that different, that you helped clean up, if I recall.)