fixed deadlock in pubsub, remove scale from xf_context