fixed dependencies.cmake
made MockObserver thread safe