wait in _handshake_test, to make sure handshake complete. Fixes: #38
Merge remote-tracking branch 'origin/handshakesleep' into fbsd-wantwrite