This is the patch addressing this bug which I have obtained this patch from upstream and tested it out.
The upstream is waiting for further work for a new release so backporting this patch for a Debian release seems appropriate. This fixes http://bugs.debian.org/857619 for matrix-synapse.
0001-Add-patch-for-sodium-is-already-initialized-issue.patch
Description: Binary data