BufferInputStream: strong reference to the buffer

During a file saving, we don't want the buffer to be finalized.