Check that the local socket is valid.