builder/amazon/chroot: block when obtaining lock [GH-689]