[chapel-lang/chapel] Fix remote deletes of sync variables

Branch: refs/heads/master
Revision: fbd636d
Author: ronawho
Log Message:

Merge pull request #16336 from ronawho/fix-remote-sync-delete

Fix remote deletes of sync variables

[reviewed by @mppf]

Sync/Single variables were just directly calling the runtime destroy functions
in their deinit() routines, but deinit can be called remotely, so we need an
on clause to migrate execution.

Resolves https://github.com/chapel-lang/chapel/issues/7282

Modified Files:
A test/types/sync/elliot/remote-delete.chpl
A test/types/sync/elliot/remote-delete.good
A test/types/sync/elliot/remote-delete.numlocales
M modules/internal/ChapelSyncvar.chpl

Compare: https://github.com/chapel-lang/chapel/compare/a0f48523c6d5...fbd636dbb056