Clear stale shadow-utils lockfiles before building

If a build is killed in the middle, stale lockfiles for group and user
dbs might get left around. Clean them up in build_packages, build_image,
and update_chroot.

BUG=None
TEST=build_packages with a stale /etc/passwd.lock sitting around.

Change-Id: Ie9887b6b38ba92cc8c008ea15a2f44a0f312b758
Reviewed-on: https://chromium-review.googlesource.com/185605
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
4 files changed