822. Agreement by creditor with guarantor giving time.

A creditor may compound with and give time to a guarantor, or take security from him, without discharging co-guarantors or the principal