udscs: Fix memory ownership issues with udscs_read_callback