Add mutex for locking when Adding or Removing an event listener.