fix a possible memory bug in PerThreadStreamBuf
fix a possible memory bug in PerThreadStreamBuf

Destructor calls sync(). sync() unconditionally accessed the map, which
might CREATE the map entry if it doesn't exist. boom. To fix, make sure it
doesn't create map entries.

DougFirErickson/visionworkbench,fengzhyuan/visionworkbench,AveRapina/visionworkbench,AveRapina/visionworkbench,DougFirErickson/visionworkbench,AveRapina/visionworkbench,fengzhyuan/visionworkbench,DougFirErickson/visionworkbench,DougFirErickson/visionworkbench,DougFirErickson/visionworkbench,fengzhyuan/visionworkbench,fengzhyuan/visionworkbench,AveRapina/visionworkbench,fengzhyuan/visionworkbench,fengzhyuan/visionworkbench,AveRapina/visionworkbench,fengzhyuan/visionworkbench,DougFirErickson/visionworkbench,AveRapina/visionworkbench