Steward Health Care said Friday it has secured a deal to help stabilize operations and keep its Massachusetts hospitals open. However, the company indicated it will consider transferring ownership of one or more of its medical centers to another company. “Despite troubling news reports about our Massachusetts hospitals, I want…