Hold cap transition lock until we've read back dirty resources
Hold cap transition lock until we've read back dirty resources

* If we don't, then more resources can be marked as dirty in between
  us transitioning back to idle, and actually doing the readback.

victor-moya/renderdoc,Anteru/renderdoc,cgmb/renderdoc,googlestadia/renderdoc,baldurk/renderdoc,Anteru/renderdoc,baldurk/renderdoc,etnlGD/renderdoc,TurtleRockStudios/renderdoc_public,Velro/renderdoc,cgmb/renderdoc,Lssikkes/renderdoc,Velro/renderdoc,Zorro666/renderdoc,Yours3lf/renderdoc,victor-moya/renderdoc,michaelrgb/renderdoc,etnlGD/renderdoc,TurtleRockStudios/renderdoc_public,victor-moya/renderdoc,Velro/renderdoc,TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,Zorro666/renderdoc,Anteru/renderdoc,victor-moya/renderdoc,Lssikkes/renderdoc,googlestadia/renderdoc,Yours3lf/renderdoc,Velro/renderdoc,etnlGD/renderdoc,cgmb/renderdoc,Lssikkes/renderdoc,Anteru/renderdoc,Anteru/renderdoc,Velro/renderdoc,Lssikkes/renderdoc,TurtleRockStudios/renderdoc_public,cgmb/renderdoc,Anteru/renderdoc,etnlGD/renderdoc,baldurk/renderdoc,michaelrgb/renderdoc,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,googlestadia/renderdoc,Zorro666/renderdoc,Yours3lf/renderdoc,Yours3lf/renderdoc,victor-moya/renderdoc,etnlGD/renderdoc,Zorro666/renderdoc,googlestadia/renderdoc,Zorro666/renderdoc,michaelrgb/renderdoc,baldurk/renderdoc,Yours3lf/renderdoc,michaelrgb/renderdoc,Zorro666/renderdoc,etnlGD/renderdoc,Velro/renderdoc,Yours3lf/renderdoc,TurtleRockStudios/renderdoc_public,michaelrgb/renderdoc,Anteru/renderdoc,baldurk/renderdoc,victor-moya/renderdoc,cgmb/renderdoc,Lssikkes/renderdoc,Lssikkes/renderdoc