Add permissions (add, revoke, check) and locking functions for leases. Similar to what we do for images.