Protect access to priv->uri.