avcodec/nvenc: maximum usable surfaces are limited to maximum registered frames

Maximum usable surfaces is limited to MAX_REGISTERED_FRAMES constant in
nvenc.h

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
