Wraps a user-supplied callback and a slot for panics thrown inside the callback (while FFI frames are on the stack).
Password callback function, passed to private key loading functions.