test/test_messagedirector: fix socket binding