Close Lock object using try with resources

This will ensure the lock is release, even if an exception is thrown
inside of the finally block.

Bug: 422676297
Test: TH
Flag: EXEMPT bugfix
Change-Id: Ib18c832266b053afc854371ef52685bd7b80c756
1 file changed
tree: ca99146292206e685a639877498c1224ba431b1b
  1. apex/
  2. app/
  3. flags/
  4. system-server/
  5. util/
  6. OWNERS
  7. PREUPLOAD.cfg