Shared Collection Sample fix
- race condition when put is executed by multiple clients in the same time
- added queue, which ensures that the end state is consistent on all connected clients