cm_msg() recursion protection is not thread safe, drops messages from other thread

Issue #290 resolved
dd1 created an issue
cm_msg: Error: dropped message [[fectrl,LOG] pwb27: state 10 -> 10: ping...] to break recursion
[fectrl,INFO] trg01: trigger disabled

it two threads call cm_msg() at the same time, the recursion protection flag gets set by the first thread and message from second thread is dropped.

K.O.