Critical region for stderr write.