s3:libsmb: abstract the incoming dispatch function via a function pointer