Ensure that $borrows and $locked are removed from the prototype.

Add tests that assert it.