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

Code review for DM-1210
header for boost mutex should be added, mutex class is used in class declaration