Update how bouncycastle is initialized

I looked at what signal-cli did and tried to do the same.
Big thanks to AsamK for actually figuring this out
7 jobs for master in 8 minutes and 44 seconds