avcodec/nvenc: use INIT_CLEANUP to deal with init failures