cinder/Cinder — comment on commit 1b329b26351ee8277a6caaeebecacc1ed3cee940
File:  line 0
By BanTheRewind:

Good find!

Have you tried just using boost::lock_guard instead of scoped_lock? If you don't need to worry about unlocking explicitly (which is the case here), lock_guard is a less expensive way to scope.