add write timeout for writing to syslog

timeout is 1 second; writing to a local socket should be plenty fast

the failure cases we've seen is that this simply blocks forever. we were
unable to reproduce the failure but had proof that it happened in the
form of a stack trace, showing 1 goroutine blocking on a write, and 1000
waiting for the lock.

[finishes #59780806]