Protect relay clients state sequence against race conditions

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>