DC Nov23 backports: Fix UI cmds support in histserv NoFairMq + fix some threading risk
Backport of !1517 (merged), include fix for latest comment of @fweig (unique pointer)
Edited by Pierre-Alain Loizeau
Backport of !1517 (merged), include fix for latest comment of @fweig (unique pointer)