knfsd: allow cache_register to return error on failure