gpui_macos: Fix deadlock during re-entrant key status changes (#51035)

Closes #50151

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed a deadlock that froze the entire app when opening a new window
from a PopUp window or switching focus between multiple windows on
macOS.
97049a76baJoão Soares committed on 3/17/2026, 8:50:54 AM· committed by GitHubparentf1e7f39
1 file changedLine totals unavailable