Added BOOST_VERIFY checks on return values from pthread calls.
Refs #8916