IIOD: Fix yet another race

This race occured when the client thread started to wait for the
signal from the read thread, after it has already been sent.

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