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

Code review for DM-1210
Move lock below DEBUG?