Use lock_guard instead of Boost's scoped_lock. Added tests for C++11's std::mutex in CMake
Merge branch 'refactor-hierarchy' of github.com:esteve/r2d2-nxt into refactor-hierarchy