Fixes related to a few issues in the locked root account test I somehow
managed to overlook in the initial commit.
(cherry picked from commit 209bdd6911)
(cherry picked from commit 08ae3613fe)
The root account checks are applied to generated and deployed images
to make sure that root account is locked, except for live ISO.
(cherry picked from commit 655e7e40c0)
(cherry picked from commit 7c093ecbb4)