serialize log append

slave is sending status and stdout in parallel, then the number of line is not handled correctly

Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>