AMENDED AND RESTATED CREDIT AGREEMENT dated as of June 27, 2024 among MASTERBRAND, INC., as the Borrower The Lenders Party Hereto and JPMORGAN CHASE BANK, N.A., as Administrative Agent