WAIVER AND TWELFTH AMENDMENT TO SECOND AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT