Synchronized access to list of task groups
FIX bug: group param can be `null` in `TeXMF.add(task, group)`