SECOND AMENDMENT TO PATENT SECURITY AGREEMENT