Make bcrypt thread-safe by using a local buffer instead of a static one

This commit changes the code that is used when bcrypt is called through
a port. A previous commit fixed this problem for NIFs.
1 file changed