The court, before whom the action is tried, may, in case recovery is had upon a lost instrument, require the party claiming under it to give bond with good security, in double the amount of the claim, payable to the opposite party, and conditioned to indemnify such party against any demand by action on such lost instrument; and execution shall be stayed until such bond is given.