avcodec/nvenc: use frames hwctx when registering a frame