SERVER-39902, the lock managers ResourceId class started using the UUIDCatalog to resolve its namespace when calling the toString() function. However, views do not get tracked in the UUIDCatalog and they cannot resolve their namespaces as a consequence. We should make it so that we can also resolve view namespaces in the ResourceId class.
One way we could do this is by extending the functionality of ViewCatalog::lookup() function to take in ResourceId's and return the relevant namespace, if it exists. We would also require a similar way to keep track of ResourceIds -> NamespaceStrings, like in the UUIDCatalog.