Create thread executor and add synchronisation to mutable fields.