Fixes #1882 sharing of non-thread-safe collection prevented for local calls
Merge pull request #1885 from gurbuzali/multimap-collection-sharing/3.x

Fixes #1882 sharing of non-thread-safe collection prevented for local ca...