ci: docker: use cargo install --locked for cargo-c installation
Backported from commit 2263caff
Should fix the following error on image regeneration:
package cargo-util v0.2.15
cannot be built because it requires rustc 1.80
or newer, while the currently active rustc version is 1.76.0