Concurrency bug fix: lock subscriptions.