Lock around setting the color

Fixes #202

**A Common ZMap Development Story**
- Zakir sees problem
- Zakir writes solution for problem
- Zakir's solution does not fix problem
- David fixes Zakir's solution