Fix test_socket broken in previous commit (changeset 13e2e44db99d).
Added new checks for socket.setblocking().