Tried boost::unique_lock in place of lock_guard.  No joy.
Created test7: simple boost-like wrapper around pthreads.
Progress on test5 (comms API) using boostly from test7.