fix colorUtil

Makes ColorUtil thread safe.

@yilongli please review