WritableStream: Clear resolving functions

By making sure resolving functions are cleared on resolve/reject promises, we
can detect bugs.
These are good; probably should have done this earlier.