Cache layers: add `update(..., write=False)`, use it for Dory `last_loop` (#50993)
* Cache layers: add `update(..., write=False)`, use it for Dory last_loop
* Drop update(write=False): Dory last_loop rolls back earlier loops' writes with crop
* Dory last_loop: read-only cache layer view instead of write + crop