Wip 10383: Fix unittest_msgr with AsyncMessenger bug

Mainly fix corner dead lock discovered by slow running(valgrind)

Fix bug #10383