Add locks to logger on connection, since it is mutable.

Signed-off-by: Mike Gehard <mgehard@pivotallabs.com>