Backport of "nvcodec: leave g_once_init when all quarks are initialized" into 1.18
Backport of !1782 (merged) "nvcodec: leave g_once_init when all quarks are initialized".
Commits:
- 168b5f65 nvcodec: leave g_once_init when all quarks are initialized