Make MessageCallbackManager thread safe

- Add invalidateAllCallbacks method to reset the manager