IIOD: Unregister the client from the r/w thread when it exits
IIOD: Unregister the client from the r/w thread when it exits

Signed-off-by: Paul Cercueil <73d292422978d45c9eeef455bb1b24a0db453722@analog.com>

Sunderfield/libiio,analogdevicesinc/libiio,sensarliar/libiio,Sunderfield/libiio,analogdevicesinc/libiio,sensarliar/libiio,sensarliar/libiio,Sunderfield/libiio,analogdevicesinc/libiio,gburca/libiio,gburca/libiio,gburca/libiio,analogdevicesinc/libiio