fix(CI): Wait for lock when running apt-get (#78979)
Sometimes this step can fail because something else has the lock (I'm
not sure what, as I thought these things run in isolated containers),
but we can mitigate this by waiting for the lock up to 60 seconds.

We also call `apt` instead of `apt-get` in some of our CI scripts, but
use of `apt` in scripts is discouraged as the CLI interface is unstable.
`apt` does automatically wait for the lock, so those places don't have
this problem.
More details here:
https://blog.sinjakli.co.uk/2021/10/25/waiting-for-apt-locks-without-the-hacky-bash-scripts/