Network backend: Return -EPIPE when the connection has been lost

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>