Simplify the lock usage (#35957)

Follow-up of https://github.com/zed-industries/zed/pull/35955

Release Notes:

- N/A

Co-authored-by: Piotr Osiewicz <piotr@zed.dev>
6bd2f8758eKirill Bulatov committed on 8/10/2025, 7:32:25 PM· committed by GitHubparentf3d6deb
1 file changedLine totals unavailable