(change:minor) Replaced use of 'boost::mutex::scoped_lock' with 'boost::unique_lock<boost::mutex>', since the former is deprecated in Boost.Thread v4