nvenc: Ensure unmap resources before finalizing them
Mapped resource via NvEncMapInputResource() will result to unregister fail. It can happen when paused to ready state change without EOS event.
Mapped resource via NvEncMapInputResource() will result to unregister fail. It can happen when paused to ready state change without EOS event.