Pyramid Management Group said Thursday it has reached a deal with its lenders to refinance the Walden Galleria's debt and stave off foreclosure.