wstream: Simplify wstream_new_buffer

- 'copy' parameter was removed, callers can simply duplicate the argument if
  needed.
- A function to free the buffer must be specified. NULL can be passed for
  buffers that should not be freed.