Network backend: Respect the timeout when connecting

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