After the execution of such bond, the defendant in the execution or attachment shall be barred of any claim against the officer so seizing or selling the property, unless the obligors in the bond be or become insolvent, or the bond be otherwise invalid; and the defendant in execution or attachment may sue on the bond in the name of the payee, for his use, and recover double damages for the loss he has sustained by the seizure or sale of the property.