AMENDED AND RESTATED SECURITY AGREEMENT (LEASE NO. 3)