I doubt it. Your friend is owed money by you so he could sue you, but he wouldn't have any interest in the property. He is a third party. Wouldn't the vendor have returned your deposit anyway?
If your friend does lodge a caveat then he would be up for the potentially substantial costs of the...