The function stream::control_callback now copies or moves the callback. In some cases this may require a dynamic allocation. To avoid the possibility of a dynamic allocation, callers may wrap their callback using `std::ref` before setting it.