Federal mediators announced Monday that the Metropolitan Opera has reached a tentative agreement with two of its biggest unions, suggesting that a lockout will likely be avoided.