nfsd4: add helper function to run callbacks