Update project metadata when releasing a worktree's weak handle

When a project was getting unshared, we would remove invisible worktrees
from the project's state without notifying the server, which was causing
the randomized tests to fail.

This commit calls `Project::remove_worktree` when a worktree's handle gets
released. Doing so ensures that we update both our local metadata database
as well as the state on the server.
2f09a4af16Antonio Scandurra committed on 6/22/2022, 8:26:10 AMparent484e98c
1 file changedLine totals unavailable