Fixed an error in sync_loan.
Fixed "delete loan" on borrow admin page.

WEBDEV-164