Take care of lockedShards in QueryRegistry.