Added locks for writes.
Merge branch 'test' of github.com:project-fifo/chunter into test