Conn monitor: grab a lock before printing

This avoids stuff being printed simultaneously from two threads