dotcloud/docker — pull request #2795 by pnasrat (2013-11-21 13:11:05+00:00)
Title: Lock state before we modify.

When we start a container we lock state, we should do the same in stop.

Detected via -race.

See Issue #713