CUDA: Ninja generator generates valid compile database

The ninja generator has been updated to poperly write the compile
database when the CUDA language has been enabled.

Fixes #23368
40 jobs for !7129 with ninja_compile_database_understand_new_cuda_lang_variables in 58 minutes and 40 seconds (queued for 7 seconds)
latest merge request