LSpace#hierarchy: Cache the list of parent lspaces.

Prior to this change, in a profile of a large, LSpace-intensive app,
we spent nearly 10% of our time walking the LSpace hierarchy.