Lock around chroot.dump()

Exact duplicate of https://github.com/pantsbuild/pants/pull/821, just want a second pull req to see if triggered CI encounters same errors.