Use read lock only when possible in SubscribeToTopic.