Remove a (largely harmless) race on p.conn

Add a Connected() member function that checks atomic variables to see if
the peer is connected.