[services/federation] stop auth in the right thread