Make BufferOutputStream more robust after dispose

Some code can be executed after dispose(), like
gtk_source_buffer_output_stream_close(). After dispose(), the
source_buffer is NULL.