JSocket: Check for ETIMEDOUT as well.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@2468 ba6dc0ae-232f-0410-883f-9ebac64fc565
PubSub: allow register outside ckpt-restart phase.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@2469 ba6dc0ae-232f-0410-883f-9ebac64fc565