Fixes a race condition + bad XB-200 handling

There was a race condition preventing the thread to be sampling.
In addition to that, XB-200 filter functions were called even
though the module was not enabled.