avcodec/nvdec: Push the context before destroying the decoder