Synchronization for sharing/updating shared model state dict across multi-process

I found a possible answer. @Yanzzzzz @wwiiiii

And I found another related answer