More locks, more shared pointers for thread-safety.
More locks.