locks: move i_lock acquisition into generic_*_lease handlers