; or (2) a debt secured by a lien that is— (A) not avoided under subsection (e) or (g) of this section or under section 544, 545, 547, 548, or 549 of this title; and (B) not void under section 506(d) of this title. (d) (1) A waiver of an exemption executed in favor of a creditor that holds an unsecured claim against the debtor is unenforceable in a case under this title with respect to such claim against property that the debtor may exempt under subsection (b). (2) A waiver by the debtor of a power under subsection (e) or (g) to avoid a transfer, under subsection (f) or (h) to exempt property, or under subsection (h) to recover property or to preserve a transfer, is unenforceable in a case under this title. (e) (1) Notwithstanding any waiver of exemptions, the debtor may avoid the fixing of a lien on an interest of the debtor in property to the extent that such lien impairs an exemption to which the debtor would have been entitled under subsection (b), if such lien is— (A) a judicial lien, other than a judicial lien that secures a debt of a kind that is specified in section 523(a)(5); or (B) a nonpossessory, non-purchase-money security interest in any personal, family, or household goods or in any implements, professional books, or tools, of the trade of the debtor or the trade of a dependent of the debtor. (2) (A) For the purposes of this subsection, a lien shall be considered to impair an exemption to the extent that the sum of— (i) the lien; (ii) all other liens on the property