Fix Boost error.

Error was: ‘lock_guard’ is not a member of ‘boost’

Tested on Arch Linux with Boost 1.55.