Fix concurrency issue in DefaultSubscriptionRegistry