DM-1210: Invert buffering for czar in row-based result handling

Code review for DM-1210
True, we need more modern compiler which supports rvalue references for that to work correctly (and then we can switch to std::shared_ptr and std::make_shared).