the plaintiff has deposited such money or property or has paid the amount of or the loan or other value of such instrument or the amount due under such obligation into the registry of the court, there to abide the judgment of the court, or has given bond payable to the clerk of the court in such amount and with such surety as the court or judge may deem proper, conditioned upon the compliance by t