Add BufferSink#dispose() and its caller method

BufferSink#dispose() disposes external resources in the instance.