Make sure the scan elements are inited before the XML string is created

Additionnally, the network backend no longer recreate the XML string for
later use with iio_context_get_xml(), but simply use the string returned
by the IIOD server during the connection.

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