fix memory leak in bcrypt_nif:gen_salt