Fix thread problems with ErrorObj

Fixed two problems with ErrorObj found while running the preliminary threaded cmsRun via helgrind. These are not a problem for the single threaded framework but it helps to keep the two aligned.