use a mutex to protect some things in icon
fixed a crash