Backport of "d3d11device: protect device_lock vs device_new" into 1.24
requested to merge gstreamer-backport-bot/gstreamer:mr-6686-backport-into-1.24-d3d11device-create-and-destroy-concurrency-pr into 1.24
Backport of !6686 (merged) "d3d11device: protect device_lock vs device_new".
Commits: