[boost] [thread] lock factory functions?