Wrong mutex was created/destroyed at relay_init/quit_state

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