Fix concurrency bug
Have to synchronize before writing to a volatile list.