Surround pthread harnesses with ifndef guards
Surround pthread harnesses with ifndef guards

This makes it fairly easy to disable the pthread harnesses when
generating code.

In future, it might be useful to be able to disable emission of the
harnesses entirely.

johnwickerson/memalloy,johnwickerson/memalloy,johnwickerson/memalloy