If notice of the pendency of a proceeding for dissolution of the marriage, for nullity of the marriage, or for legal separation of the parties is recorded in any county in which either spouse resides on real property that is the separate property of the other, the real property shall not for a period of three months thereafter be transferred, encumbered, or otherwise disposed of voluntarily or involuntarily without the joinder of both spouses, unless the court otherwise orders.