Initialize pub thread after all the data it uses is constructed.
Some debugging for mutex
force xenomai flags if found