Make Add() thread safe with a Mutex