An option to acquire an interest in real estate granted to a party secured by a mortgage or deed of trust, other than an option granted to such party in connection with a mortgage loan as defined in ?? 6.1-409, is effective according to its terms and takes priority as provided in subsection A of this section if the right to exercise the option is not dependent upon the occurrence of a default unde