venus: fix use-after-free in proxy_context sync thread
When process isolation (proxy_context) and threaded fence sync (sync_thread) are integrated, there is a shmem use-after-free in the sync_thread during normal context destruction that crashes the VM.
This fix reorders sync_thread shutdown before shmem unmapping and mutex destruction.
Edited by Ryan Neph