WIP first test passes
ws: Fix up mock-sshd to handle retrying non-blocking writes

A corner case would occur when xxxxx WIP
WIP more work
More hanging