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 7 minutes and 48 seconds (queued for 1 second)