More work on building dofmaps on ghosted meshes.