(b) Extension of lien. Upon motion of the judgment creditor, upon notice to the judgment debtor, served personally or by registered or certified mail, return receipt requested, to the last known address of the judgment debtor, the court may order that the lien of a money judgment upon real property be effective after the expiration of ten years from the filing of the judgment-roll, for a period no longer than the time during which the judgment creditor was stayed from enforcing the judgment, or the time necessary to complete advertisement and sale of real property in accordance with section 5236, pursuant to an execution delivered to a sheriff prior to the expiration of ten years from the filing of the judgment-roll. The order shall be effective from the time it is filed with the clerk of the county in which the property is located and an appropriate entry is made upon the docket of the judgment.
(c) Notwithstanding any other provision of law, where a court makes an oral or written determination on the record awarding ownership of an interest in real property, and a judgment effectuating such determination is docketed with the clerk of the county in which such property is located not later than thirty days thereafter, such judgement shall be deemed entered and docketed on the day immediately preceding the date of such determination solely for purposes of establishing the priority thereof against a judicial lien on such property created upon the simultaneous or later filing of a petition in bankruptcy pursuant to the United States bankruptcy code, as amended.