Write Error to ErrorStream

This lock is useful because when we do `kpm restore`, we will have multiple threads writing to a single `IReport` concurrently. The lock here prevents interleaved output.
So I guess we should move the locking to somewhere instead of deleting it.