Fix race condition in CLI tests: diff was not acquiring a container lock

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)