[MDGFS] Declare GridFunctionSpaceBase as a friend

GridFunctionSpaceBase needs access to the private _ordering member in
its update() method, so make sure it can get to it.