crypto: make NewSessionDoneCb public

Generic friend classes do not work well with old compiler versions (and
MSVC).